{% load i18n %}{% load staticfiles %}<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="{% static "img/favicon.ico" %}">
    <title>{% block title %}{% endblock %}</title>
    <link rel="stylesheet" href="{% static "css/bootstrap.min.css" %}">
    <link href="{% static "css/webvirtmgr.css" %}" rel="stylesheet">
    {% block style %}{% endblock %}
</head>

<body>
<nav class="navbar navbar-inverse navbar-static-top" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="{% url 'index' %}">WebVirtMgr</a>
        </div>
        <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li>
                    <a href="{% url 'infrastructure' %}"
                       title="{% trans "Show all host and vm's" %}">{% trans "Infrastructure" %}</a>
                </li>
            </ul>

            <ul class="nav navbar-nav navbar-right">
                {% if request.user.is_authenticated or user.is_authenticated %}
                    <li class="">
                        <a href="{% url 'logout' %}">{% trans "Sign out" %}</a>
                    </li>
                {% else %}
                    <li class="">
                        <a href="{% url 'login' %}">{% trans "Sign in" %}</a>
                    </li>
                {% endif %}
            </ul>
        </div>
    </div>
</nav>
<div class="container">
    {% block content %}{% endblock %}
</div>
<script src="{% static "js/jquery-1.10.2.js" %}"></script>
<script src="{% static "js/bootstrap.min.js" %}"></script>
{% block script %}{% endblock %}
</body>
</html>
